import { defineStore } from 'pinia'
import { Names } from './store-name'

export const useViewRoutesStore = defineStore(Names.ViewRoutes, {
  state: (): viewRouteState => {
    return {
      cacheRouteNames: [], // 路由的名称
    }
  },
  actions: {
    // 设置菜单权限
    async setCacheRouteNames(data: string[]) {
      this.cacheRouteNames = data
    },
  }
})